<?
	$savePath = './session_save_dir/'; 
	session_save_path($savePath); 
	session_start();
	require_once("./configure.php");
	require_once("./include/function.php");
	$login_act		= $_REQUEST["login_act"];
	$login_userid	= $_POST["login_userid"];
	$login_pwd		= $_POST["login_pwd"];
	$login_kind		= $_POST["login_kind"];
	$userid			= $_GET["userid"];

// printAllForm();
	if($login_act == 'sessdel'){
		sess_delete($userid);
	}else if($login_act == 'logout'){
		//die($userid);
		logout_delete($userid);
	}else if($login_act == 'login'){
		login($login_userid, $login_pwd, $login_kind);
	}
	echo "<script>location.href='./'</script>";
?>	